import logging
from config import sitesettings

class BaseTask(object):

    def __init__(self):
        self.settings = sitesettings.SiteSettings()
        self.dologging = self.settings.logtasks

    def logmessage(self, message):
        if self.dologging:
            logging.info(message)
